<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>参建企业列表</title>
		<script type="text/javascript" src="js/CanJianQY.js"></script>
		<link type="text/css" rel="stylesheet" href="style/styles.css"/>
	</head>

	<body>
		<input id="canJianQYID" type="hidden" value=""/>
		<%
		Map map = (Map) request.getAttribute("gongChengXM");
		%>
		<fieldset>
			<legend>参建企业</legend>
		
		<form name="cjqyOperaForm" action="" method="post">
			<input type="hidden" id="currentPage"
				value="<%=request.getAttribute("pageNum")%>" />
			<input type="hidden" id="pageSize" value="3" />
			<input type="hidden" id="totalPage"
				value="<%=request.getAttribute("pageCount")%>" />
			<input id="gongChengXMID" type="hidden" value="<%=map.get("ID") %>"/>
			<table>
				<tr>
				<td><input class="QiYe_btn" id="add" type="button" value="增加" onclick="cjqyOpera(this.id);"/></td>
				<td><input class="QiYe_btn" id="delete" type="button" value="删除" onclick="cjqyOpera(this.id);"/></td>
				<td><input class="QiYe_btn" id="update" type="button" value="修改" onclick="cjqyOpera(this.id);"/></td>
				</tr>
			</table>
		</form>
		<table width="100%" cellspacing="0" cellpadding="0" border="0" style="table-layout: fixed;">
			<tr>
				<td width="23px" class="tableHead">&nbsp;</td>
				<td class="tableHead">批文标题</td>
				<td class="tableHead">批复文号</td>
				<td class="tableHead">批复时间</td>
			</tr>
			<%
				List list = (List) request.getAttribute("canJianQYLIST");
				for (int i = 0; i < list.size(); i++) {
					Map canJianQy = (Map) list.get(i);
			%>
			<tr>
				<td class="tableCell"><input id="<%=canJianQy.get("ID")%>" name="checkbox" type="checkbox" onclick="selectCanJianQYID(<%=canJianQy.get("ID") %>);"/></td>
				<td class="tableCell"><%=canJianQy.get("ID")%></td>
				<td class="tableCell"><%=canJianQy.get("CANJIANDWMC") %></td>
				<td class="tableCell"><%=canJianQy.get("CANJIANDWMC") %></td>
			</tr>
			<%
				}
			%>
			<tr>
				<td class="tableHead" colspan="4">
					<span id="homepage" onclick="homePage()">首页</span><span
						id="prePage" onclick="prePage()">上一页</span>第
					<span id="currentPageSpan"><%=request.getAttribute("pageNum")%></span><span
						id="totalPageSpan">/<%=request.getAttribute("pageCount")%></span>页
					<span id="nextPage" onclick="nextPage()">下一页</span><span
						id="endPage" onclick="endPage()">末页</span>
				</td>
			</tr>

		</table>
		</fieldset>
	</body>
</html>
